package me.joshua.demo4j.spring.groovy.first.script;

import me.joshua.demo4j.spring.groovy.first.model.Member
import me.joshua.demo4j.spring.groovy.first.service.MemberService
//import me.joshua.demo4j.spring.groovy.first.model.Order
//import me.joshua.demo4j.spring.groovy.first.service.OrderService
import me.joshua.demo4j.spring.groovy.first.service.ScriptService

import org.springframework.beans.factory.annotation.Autowired

class Simple implements ScriptService {

	@Autowired
	private MemberService memberService

	public void run() {
		Member member = memberService.findMember("daonan.zhan@gmail.com");
		System.out.println(member);
	}
	
//	@Autowired
//	private OrderService orderService;
//	
//	public void run() {
//		Order order = orderService.findOrder(1);
//		System.out.println(order);
//	}
}
